import request from '@/utils/request'

// 查询装备预设列表
export function listEquipmentpresets(query) {
  return request({
    url: '/system/equipmentpresets/list',
    method: 'get',
    params: query
  })
}

// 查询装备预设详细
export function getEquipmentpresets(id) {
  return request({
    url: '/system/equipmentpresets/' + id,
    method: 'get'
  })
}

// 新增装备预设
export function addEquipmentpresets(data) {
  return request({
    url: '/system/equipmentpresets',
    method: 'post',
    data: data
  })
}

// 修改装备预设
export function updateEquipmentpresets(data) {
  return request({
    url: '/system/equipmentpresets',
    method: 'put',
    data: data
  })
}

// 删除装备预设
export function delEquipmentpresets(id) {
  return request({
    url: '/system/equipmentpresets/' + id,
    method: 'delete'
  })
}
